<?php

namespace app\api\model;

use think\Model;

class CircleLikes extends Model
{
    public static function getCircleLike($user_id, $circle_id)
    {
        return self::where('user_id', $user_id)->where('circle_id', $circle_id)->find();
    }

    public static function getUserLike($user_id)
    {
        return self::where('user_id', $user_id)->column('circle_id');
    }
}
